From a8ba986779e3332e3c3b10d62a52f2ba044d534a Mon Sep 17 00:00:00 2001 From: Jan D Date: Wed, 14 Jul 2010 17:10:59 +0200 Subject: [PATCH] Fix frame size when scroll bar width not an integral of column width. xterm.c (x_set_window_size_1): scroll_bar_actual_width is always SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing. --- src/xterm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index e66845df26c..1427797f8d5 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8606,9 +8606,7 @@ x_set_window_size_1 (struct frame *f, int change_gravity, int cols, int rows) f->scroll_bar_actual_width = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) ? 0 - : FRAME_CONFIG_SCROLL_BAR_WIDTH (f) > 0 - ? FRAME_CONFIG_SCROLL_BAR_WIDTH (f) - : (FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f))); + : FRAME_CONFIG_SCROLL_BAR_COLS (f) * FRAME_COLUMN_WIDTH (f)); compute_fringe_widths (f, 0); -- 2.30.2